import { createRouter, createWebHistory } from "vue-router"
import Menus from '@/components/Menus.vue'
const routes = [
    {
        path: '/',
        name: 'home',
        component: Menus,
        redirect: '/hello',
        children: [
            {
                path: '/tasks',
                name: 'tasks',
                component: () => import('@/components/Tasks.vue')
            },{
                path: '/hello',
                name: 'hello',
                component: () => import('@/components/HelloWorld.vue')
            },
            {
                path: '/sql',
                name: 'sql',
                component: () => import('@/components/SqlEditor.vue')
            },
            {
                path: '/crc',
                name: 'crc',
                component: () => import('@/components/Crc.vue')
            },
            {
                path: '/TuiEditor',
                name: 'TuiEditor',
                component: () => import('@/components/TuiEditor.vue')
            },
            {
                path: '/Ssl',
                name: 'Ssl',
                component: () => import('@/components/Ssl.vue')
            },
            {
                path: '/MilkdownEditor',
                name: 'MilkdownEditor',
                component: () => import('@/components/MilkdownEditorWrapper.vue')
            }
        ]
    },
]
const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router

